package com.pine.app.module.security.core.common.enums;/**
 * Created by xyjxu on 2019/9/5.
 */

/**
 * @program: 授权模式
 * @description:
 * @author: xyjxust
 * @create: 2019-09-05 21:51
 **/
public enum GrantType {
    //密码模式
    PASSWORD("password"),
    //授权码模式
    AUTHORIZATION_CODE("authorization_code"),
    //刷新模式
    REFRESH_TOKEN("refresh_token"),
    //客户端模式
    CLIENT_CREDENTIALS("client_credentials"),
    //简化模式
    IMPLICIT("implicit");


    private String name;


    GrantType(String name) {
        this.name = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
